video: sunxi: de2: fix SimpleFB node creation when DE2 not probed
authorIcenowy Zheng <[email protected]>
Fri, 27 Jul 2018 15:50:53 +0000 (23:50 +0800)
committerJagan Teki <[email protected]>
Tue, 31 Jul 2018 06:09:47 +0000 (11:39 +0530)
commitb29712e941e15c8385cf8f0347b165c148b133bc
tree6f1f7f3c916e8a85adb57c3e8180f68a1d62eb44
parenta8407b5642e5a6154cd8665137fc0cd0c142328e
video: sunxi: de2: fix SimpleFB node creation when DE2 not probed

Sometimes when a monitor without EDID information is plugged, the DE2
won't be probed (because of lack of timing information), but the HDMI
node is probed, thus a SimpleFB node with invalid information will be
populated.

Also detect whether DE2 is probed when creating SimpleFB node.

Fixes: be5b96f0e411 ("sunxi: setup simplefb for Allwinner DE2")
Signed-off-by: Icenowy Zheng <[email protected]>
Acked-by: Maxime Ripard <[email protected]>
Acked-by: Jagan Teki <[email protected]>
drivers/video/sunxi/sunxi_de2.c